//
//  CoolInputAccessoryView.h
//  CoolFramework
//
//  Created by Felix on 13-3-21.
//  Copyright (c) 2013年 FelixApp. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol CoolInputAccessoryViewDelegate <NSObject>

- (void)finishInput;

@end

@interface CoolInputAccessoryView : UIView
@property (nonatomic,assign)BOOL biaoQing;
@property (nonatomic,copy)void (^biaoQingOrJianPan)(BOOL biaoQing);
@property (weak, nonatomic) id <CoolInputAccessoryViewDelegate> delegate;

- (id)initWithTextFieldOrTextView:(UIResponder*)textFieldOrTextView;

- (id)initWithBiaoQingTextFieldOrTextView:(UIResponder*)textFieldOrTextView BiaoQing:(void(^)(BOOL biaoqing))biaoqingBool;

- (id)initWithTextFieldOrTextViewWithFinishItem:(UIResponder *)textFieldOrTextView;

- (id)initWithTextFieldOrTextView:(UIResponder*)textFieldOrTextView title:(NSString*)title target:(id)target action:(SEL)action;

- (id)initWithTextField:(UITextField*)textField;

- (id)initWithTextField:(UITextField*)textField title:(NSString*)title target:(id)target action:(SEL)action;

@end
